<?php

class Radiobutton extends PageElement
{

	private $checked = false;

	public function setChecked($isChecked)
	{
		$this->checked = $isChecked;
	}

	public function __construct()
	{
	}

	public function getHTML()
	{
		$checkedText="";
		if($this->checked)
			$checkedText=" checked=\"checked\"";
		$html = "<input type=\"radio\"".parent::getHTML().$checkedText.">".$this->text."</input>\n";
		return $html;
	}

}

?>
